﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReportDetails.aspx.cs"
    Inherits="ColorApplication.color.ReportDetails" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Report Details</title>
    <script src="/Scripts/colorsaylib.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table>
        <tr>
            <td>
                <h2>Report Details</h2>        
            </td>
            <td>
                <asp:Button ID="ExportButton" runat="server" Text="Export to Excel" 
                                OnClick="ExportToExcel" Enabled="False" />
            </td>
        </tr>
    </table>
        
    <table>
        <tr>
            <td><asp:Literal runat="server" ID="litStartEndDate"></asp:Literal></td>
        </tr>
        <tr>
            <td>
                <asp:Literal runat="server" ID="litSelectedOpt"></asp:Literal>
                <asp:Literal runat="server" ID="specificUrl"></asp:Literal>
            </td>
        </tr>
        <tr>
            <td><asp:Literal runat="server" ID="litAttsFamily"></asp:Literal></td>
        </tr>
    </table>
    
    <table runat="server" id="tableTotalSection" visible="False" border="1" style="border-collapse: collapse;
        border: 1px solid; margin-top: 5px; margin-bottom: 5px; width: 1200px;">
        <tr>
            <td width="50%" valign="top">
                <table>
                    <tr>
                        <td style="font-weight: bold">
                            Number of analyzes:&nbsp;
                        </td>
                        <td style="width: 50%;">
                            <asp:Label runat="server" ID="lblNumberOfAnan" CssClass="reportText"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="font-weight: bold">
                            Number of analysis types:&nbsp;
                        </td>
                        <td style="width: 50%;">
                            <asp:Label runat="server" ID="lblNumberOfType" CssClass="reportText"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="font-weight: bold">
                            AVG of size:&nbsp;
                        </td>
                        <td style="width: 50%;">
                            <asp:Label runat="server" ID="lblAverageOfSize" CssClass="reportText"></asp:Label>
                        </td>
                    </tr>
                </table>
            </td>
            <td width="50%" valign="top">
                <table>
                    <tr>
                        <td style="font-weight: bold">
                            AVG percentage match:&nbsp;
                        </td>
                        <td style="width: 50%;">
                            <asp:Label runat="server" ID="lblAvgPerMatch" CssClass="reportText"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <span style="font-weight: bold">AVG of number of how many expected attributes were chosen:&nbsp;</span>
                            <asp:Label runat="server" ID="lblAvgExpectedAttrs" CssClass="reportText"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <span style="font-weight: bold">AVG of number of matching number of found attributes from expected
                                attributes:&nbsp;</span>
                            <asp:Label runat="server" ID="lblAvgMatchingNumber" CssClass="reportText"></asp:Label>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <b>Top expected results up to 10:</b>
                <asp:Label runat="server" ID="lblTopExpectedResults" CssClass="reportText"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <b>Top found results up to 10:</b>
                <asp:Label runat="server" ID="lblTopFoundResults" CssClass="reportText"></asp:Label>
            </td>
        </tr>
    </table>
    <asp:GridView ID="ReportGridView" runat="server" Width="1500px" AutoGenerateColumns="False"
        AllowSorting="True" OnRowDataBound="ReportGridView_RowDataBound"
        EmptyDataText="No Records Found...">
        <Columns>
            <asp:TemplateField HeaderText="Date">
                <ItemTemplate>
                    <asp:Label ID="lblAnalysisDate" runat="server" ReadOnly="True"></asp:Label>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Selected Opt">
                <ItemTemplate>
                    <asp:Label ID="lblSelectedOpt" runat="server" ReadOnly="True"></asp:Label>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="URL">
                <ItemTemplate>
                    <asp:Label ID="lblUrl" runat="server" ReadOnly="True"></asp:Label>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Left" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Picture Name">
                <ItemTemplate>
                    <asp:Label ID="lblPictureName" runat="server" ReadOnly="True"></asp:Label>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Left" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Number of Matching per Expected">
                <ItemTemplate>
                    <asp:Label ID="lblMatchingPerExpected" runat="server" ReadOnly="True"></asp:Label>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Left" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Sum of Matching">
                <ItemTemplate>
                    <asp:Label ID="lblSumOfMatching" runat="server" ReadOnly="True"></asp:Label>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Left" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Expected results">
                <ItemTemplate>
                    <asp:Label ID="lblExpectedResults" runat="server" ReadOnly="True"></asp:Label>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Left" Width="350px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Summary results">
                <ItemTemplate>
                    <asp:Label ID="lblSummaryResults" runat="server" ReadOnly="True"></asp:Label>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Left" Width="250px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Matching Attrs">
                <ItemTemplate>
                    <asp:Label ID="lblMatchingAttrs" runat="server" ReadOnly="True"></asp:Label>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Left" Width="500px" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    </form>
</body>
</html>
